cmake_minimum_required(VERSION 3.0)

project(test_hls_protocol)

add_definitions(-std=c++14 -Wall -g)

include_directories(./)
include_directories(./../)
include_directories(./../../)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(test_hls_m3u8_parser_src_list ./test_hls_m3u8_parser.cpp
  ./../hls_m3u8_message.cpp
  ./../hls_m3u8_parser.cpp
  ./../../write_read_module/buffer.cpp
  ./../../file_module/file_description.cpp
  ./../../file_module/file_handle.cpp
  ./../../file_module/file_operate.cpp
)

add_executable(TEST_HLS_M3U8_PARSER ${test_hls_m3u8_parser_src_list})

set(libs gtest gtest_main ssl crypto)

target_link_libraries(TEST_HLS_M3U8_PARSER ${libs})
